package com.example.springboot.controller.api;

import com.example.springboot.common.Result;
import com.example.springboot.entity.Feedback;
import com.example.springboot.service.IHotSearchesService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * <p>
 * 热门搜索表 API控制器 - 不需要token验证的API
 * </p>
 *
 * @author
 */
@RestController
@RequestMapping("api/hotSearches")
public class HotSearchesApi {
    @Resource
    private IHotSearchesService iHotSearchesService;

    @GetMapping("/list")
    public Result list() {

        return Result.success(iHotSearchesService.list());
    }
}
